<!DOCTYPE html>  
<html xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"  
    xmlns:ui="http://java.sun.com/jsf/facelets"  
    xmlns:p="http://primefaces.org/ui">  
	<h:head>
		<title> Distribuidora Frutos del Campo </title>
		<meta charset="utf-8" />
	</h:head>
	<h:body>

	<h:panelGrid columns="1" cellpadding="5">
		<p:commandButton id="basic" value="Basic" onclick="dlg1.show();"
			type="button" />

		<p:commandButton value="Modal" onclick="dlg2.show();" type="button" />

		<p:commandButton value="Effects" onclick="dlg3.show();" type="button" />
	</h:panelGrid>

	<p:dialog header="Basic Dialog" widgetVar="dlg1">
		<h:outputText value="Resistance to PrimeFaces is futile!" />
	</p:dialog>

	<p:dialog header="Modal Dialog" widgetVar="dlg2" modal="true"
		height="100">
		<h:outputText value="This is a Modal Dialog." />
	</p:dialog>

	<p:dialog header="Effects" widgetVar="dlg3" showEffect="explode"
		hideEffect="explode" height="100">
		<h:outputText value="This dialog has nice effects." />
	</p:dialog>
</h:body>
</html>